package com.lp.mgt.entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.type.Alias;

import lombok.Data;

@Alias("dept")
@Data
public class Department implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6921988752705887403L;

    private String deptId;
    private String parentId;
    private String ancestors;
    private String deptName;
    private String orderNum;
    private String leader;
    private String phone;
    private String email;
    /** 部门状态:0正常,1停用 */
    private String status;
    private String delFlag;
    private String parentName;
	
    
    private String id;
    private String text;
    
    
	private List<Department> nodes =new ArrayList<>();
	

	
	
	public Department(String deptId,String parentId) {
			this.deptId = deptId;
			this.parentId = parentId;
			this.nodes = new ArrayList<Department>();
		}


	public Department() {
		super();
	}

}
